﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace DotNetStar.TheKing.Infrastructure
{
    public enum UserStatus
    {
        [Description("禁止访问")]
        Forbidden = 0,
        [Description("正常")]
        Normal = 1,
        [Description("待审核")]
        Pending = 2
    }
    /// <summary>
    /// 帐号类型。
    /// </summary>
    public enum AccountTypes
    {
        [Description("邮箱")]
        Email = 1,
        [Description("手机号")]
        Mobile = 2,
        [Description("昵称")]
        UserName =3
    }

    /// <summary>
    /// 用户操作
    /// </summary>
    public enum UserOperations
    {
        [Description("未知")]
        None=0,
        /// <summary>
        /// 点赞
        /// </summary>
        [Description("点赞")]
        Like = 1,
        /// <summary>
        /// 取消点赞
        /// </summary>
        [Description("取消点赞")]
        Unlike = 2,
        /// <summary>
        /// 每日签到
        /// </summary>
        [Description("每日签到")]
        SignIn=3,
        /// <summary>
        /// 发布帖子
        /// </summary>
        [Description("发布帖子")]
        CreateContent=4,
        /// <summary>
        /// 编辑帖子
        /// </summary>
        [Description("编辑帖子")]
        EditContent=5,
        /// <summary>
        /// 删除帖子
        /// </summary>
        [Description("删除帖子")]
        DeleteContent=6,
        /// <summary>
        /// 发布代码
        /// </summary>
        [Description("发布代码")]
        CreateCode=7,
        /// <summary>
        /// 编辑代码
        /// </summary>
        [Description("编辑代码")]
        EditCode = 8,
        /// <summary>
        /// 删除代码
        /// </summary>
        [Description("删除代码")]
        DeleteCode=9,
        /// <summary>
        /// 修改密码
        /// </summary>
        [Description("修改密码")]
        ChangePwd=10,
        /// <summary>
        /// 修改头像
        /// </summary>
        [Description("修改头像")]
        ChangeAvatar=11,
        /// <summary>
        /// 重置密码
        /// </summary>
        [Description("重置密码")]
        ResetPwd=12,
        /// <summary>
        /// 发布视频
        /// </summary>
        [Description("发布视频")]
        CreateVideo = 13,
        /// <summary>
        /// 编辑视频
        /// </summary>
        [Description("编辑视频")]
        EditVideo = 14,
        /// <summary>
        /// 删除视频
        /// </summary>
        [Description("删除视频")]
        DeleteVideo = 15,
        /// <summary>
        /// 发布提问
        /// </summary>
        [Description("发布提问")]
        CreateAsk = 16,
        /// <summary>
        /// 编辑提问
        /// </summary>
        [Description("编辑提问")]
        EditAsk = 17,
        /// <summary>
        /// 删除提问
        /// </summary>
        [Description("删除提问")]
        DeleteAsk = 18,
    }

    public enum UserTopOrderBy
    {
        /// <summary>
        /// 等级
        /// </summary>
        LevelDesc,
        /// <summary>
        /// 金币
        /// </summary>
        TradingPointsDesc,
        /// <summary>
        /// 加入时间
        /// </summary>
        JoinTimeDesc
    }

    public enum Roles
    {
        User = 0,
        Administrator = 1,
    }

    public class RoleDefinition
    {
        public const string ADMINISTRATOR = "Administrator";
        public const string USER = "User";
    }

    public enum Gender
    {
        [Description("男")]
        Male=0,
        [Description("女")]
        Female=1
    }
}
